package org.summerframework.component.security.oauth;


import org.summerframework.core.base.result.ResultCode;

/**
 * 错误集合 错误信息需要规范化，错误信息由两种 1.通用错误信息与具体业务无关
 * 2.与具体应用或者业务相关，命名：[应用名]_[业务模块]_[操作（与方法名一致,可以适当简写）]_[错误内容简述]
 * 比如在更新密码操作时候，发现用户不存在，这时候错误code为： UIC_SETTING_UPDATE_PWD_USER_NOT_FOUND
 * [应用名：UIC]_[业务模块：SETTING]_[操作：updatePwd]_[错误内容简述：user not found]
 *
 * @author wujiong
 **/

public enum OAuthResultCode implements ResultCode {
    SUCCESS(0, "success"),
    /**
     * 通用异常
     */
    SYSTEM_ERROR(10000, "内部异常出错"),
    DAO_ERROR(10001, "数据层异常出错"),
    ILLEGAL_ARGUMENT(10002, "非法参数"),
    ERROR_NOT_LOGIN(10003, "请登录后重试"),
    ERROR_NOT_SELECT_ID(10004, "未查询到该数据,请重试"),
    ERROR_SELECT_IS_NULL(10005, "该数据已逃离地球,请重试"),
    ERROR_INSERT(10006, "新增失败,请重试"),
    ERROR_CONVER(10007, "对象转换ERROR"),
    ERROR_SAVE(10008, "保存失败,请重试"),
    ERROR_UPDATE(10009, "更新失败,请重试"),
    ERROR_DELETE(100010, "删除失败,请重试"),
    ERROR_DELETE_REPEAT_SUBMIT(100011, "删除失败,请勿重复提交删除"),
    ERROR_NOT_SELECT_MAIN_USER(10012, "未查询到您的主账号id"),
    ERROR_DATE_NOT_USER(10013, "该数据不属于您"),
    ERROR_REPETITION_COMMIT(10015, "请勿重复提交"),
    ERROR_UPLOAD(10016, "上传失败"),
    ERROR_MOBILE_FORMAT(10017, "手机格式错误"),
    ERROR_EMAIL_FORMAT(10018, "邮件格式错误"),
    ERROR_CHECK_EMAIL_MOBILE_FORMAT(10018, "输入错误,请输入手机或邮箱号"),
    ERROR_SEND_VERIFICTION_CODE(10019, "验证码已经失效，请重新获取。"),
    ERROR_VERIFICATION_CODE(10020, "验证码输入错误。"),
    ERROR_LINK_FAILURE(10021, "链接已失效。"),
    ERROR_TOKEN_CODE(10022, "token认证失败。"),
    ERROR_DATE_EXCEPTION(10023, "数据异常,请联系管理员"),
    ERROR_HAVE_NOT_RIGHT(10024, "没有权限"),
    VERIFICTION_CODE_NOT_NULL(10025, "验证码不能为空"),
    VERIFICTION_CODE_TIMEOUT(10026, "验证码已超时"),
    VERIFICTION_CODE_ONEMIN(10027, "同一号码一分钟只能发一条"),
    VERIFICTION_CODE_SEND_FAIL(10027, "短信发送失败"),
    ERROR_NOT_UPLOAD_FILE(10028, "至少上传一个文件"),
    ERROR_COMRESS_PICTURES(10029, "压缩图片错误,请查看图片是否为RBG模式后请重试"),
    ERROR_UPLOAD_FILE_DEFEAT(10030, "图片上传失败"),

    /**
     * 用户注册 1~1000
     */
    ERROR_PARAMETERS_IS_INVALID(1, "parameters is invalid or value is over length"),
    ERROR_UID32_IS_INVALID(2, "uid32 is invalid "),
    ERROR_EMAIL_IS_INVALID(3, "email is invalid"),
    ERROR_NICK_IS_INVALID(4, "nick is invalid"),
    ERROR_USERID_IS_INVALID(5, "userId is invalid"),
    ERROR_UID32_ARRAY_IS_INVALID(6, "uid32s is invalid"),
    ERROR_USERID_ARRAY_IS_INVALID(7, "userIds is invalid"),
    ERROR_MOBILE_IS_INVALID(8, "mobile is invalid"),
    ERROR_TYPE_IS_INVALID(9, "type is invalid"),
    ERROR_USERTAG_IS_INVALID(10, "userTag is invalid"),
    ERROR_BASEUSER_IS_NULL(11, "baseUser is null"),
    ERROR_EXTRAUSER_IS_NULL(12, "extraUser is null"),
    ERROR_ARRAY_OVER_LENGTH(13, "the array over the length of 110"),
    ERROR_REGIP_IS_BLANK(15, "regIp is blank"),
    ERROR_ISIPRANGE_IS_BLANK(16, "isIpRange is blank"),
    ERROR_TIME_IS_BLANK(17, "time is blank"),
    ERROR_MAXCOUNT_LE_ZERO(18, "max count little or equal 0"),
    ERROR_NICKLIST_IS_BLANK(19, "nickList is blank"),
    ERROR_QUERY_IS_NULL(20, "query is null"),
    ERROR_USER_AND_EXTRA_ID_NOT_EQUAL(21, "user and extra id not equal"),
    ERROR_BINDACCOUNT_IS_NULL(22, "bindAccount is null"),
    ERROR_BINDACCOUNT_COOPERATEACCOUNTTYPE_IS_INVALID(23, "bindAccount.cooperateAccount is invalid"),
    ERROR_BINDACCOUNT_ISPERMISSION_IS_INVALID(24, "bindAccount.isPermission is invalid"),
    ERROR_BINDACCOUNT_BINDSTATE_IS_INVALID(25, "bindAccount.bindState is invalid"),
    ERROR_BINDACCOUNT_COOPERATEACCOUNT_IS_INVALID(26, "bindAccount.cooperateAccount is invalid"),
    ERROR_BINDACCOUNT_COOPERATEID_IS_INVALID(27, "bindAccount.cooperateId is invalid"),
    ERROR_DELIVERADDRESS_IS_NULL(28, "deliverAddress is null"),
    ERROR_PAYMENTACCOUNTDO_IS_NULL(29, "paymentAccountDO is null"),
    ERROR_PAYMENTACCOUNTDO_INSTITUTION_IS_BLANK(30, "paymentAccountDO.institution is blank"),
    ERROR_PAYMENTACCOUNTDO_ACCOUNTNO_IS_BLANK(31, "paymentAccountDO.accountNo is blank"),
    ERROR_USERMOBILEPHONEDO_IS_NULL(32, "userMobilePhoneDO is null"),
    ERROR_USERMOBILEPHONEDO_SUBMOBILEINFO_LENGTH(33, "userMobilePhoneDO.subMobileInfo.length>2000"),
    ERROR_USERMOBILEPHONEDO_MOBILEPHONEINFO_LENGTH(34, "userMobilePhoneDO.mobilePhoneInfo.length>2000"),
    ERROR_DOMAIN_IS_BLANK(35, "domain is blank"),
    ERROR_DOMAIN_IS_INVALID(36, "domain is invalid"),
    ERROR_IDCARD_IS_INVALID(37, "idcard is invalid"),
    ERROR_PROMOTED_IS_INVALID(38, "promotedType < 0"),
    ERROR_DATE_OVER_LENGTH(39, "date is over length"),
    ERROR_USERRELATION_INVALID(40, "userRelation is null"),
    ERROR_USERRELATIONSTATUS_INVALID(41, "UserRelationSTATUS is 0"),
    ERROR_USERELATIONTAG_INVALID(42, "userRelationTag < 0"),
    ERROR_FILE_NOT_FIND(43, "该文件已被主人删除"),
    ERROR_REGISTER_NOT_FIND_USER(44, "该用户未在平台注册"),
    ERROR_REGISTER_IS_ACTIVATE(45, "该用户以激活"),
    ERROR_REGISTER_USERNAME(46, "匹配用户名失败,请刷新后重试"),
    ERROR_REGISTER_USER_STATUS(47, "激活失败"),
    ERROR_ACTIVATE_LOSE_EFFICACY(48, "邮箱验证链接过期"),
    ERROR_REGISTER_EMAIL_registered(49, "该邮箱已注册"),
    ERROR_REGISTER_MOBILE_registered(50, "该手机已注册"),
    ERROR_REGISTER_DATA(51, "数据异常,请重试"),
    ERROR_REGISTER_UPDATE_USER_NAME(52, "更新用户名失败"),
    ERROR_REGISTER_SEND_EMAIL(53, "用户注册成功,但邮件发送失败"),
    ERROR_REGISTER_USER_NAME_ERROR(54, "用户名已注册"),
    ERROR_VERIFICTION_FREEZE(55, "你的账号已冻结,冻结结束时间为:"),
    ERROR_VERIFICTION_FREEZE_EVER(56, "你的账号已冻结!"),


    /**
     * uic_register
     */
    UIC_REGISTER_MOBILE_HAS_BEEN_USED(50, "该手机号码已被注册，请更换手机号码。"),
    UIC_REGISTER_EMAIL_HAS_BEEN_USED(51, "该邮箱已被注册，请更换邮箱。"),
    UIC_REGISTER_VERIFICATION_CODE_HAS_INVALID(52, "验证码已经失效，请重新获取。"),
    UIC_REGISTER_VERIFICATION_CODE_ERROR(53, "验证码输入错误。"),
    UIC_REGISTER_INVITE_ERROR(54, "注册邀请信息添加失败。"),
    UIC_REGISTER_TYPE_NOT_FIND(55, "错误的注册类型"),

    UIC_CODE_ONLYONE_MIN(61, "一分钟内只能发送一条"),
    UIC_CODE_ONEIP_ERROR(62, "一个IP在1天最多免费发送发送1000条短信/邮件"),
    UIC_CODE_ONEMOBILE_ERROR(63, "一个手机号/邮箱在24小时最多免费发送发送10条短信/邮件"),


    UIC_EXIST(71, "用户已存在!"),
    /**
     * uic_setting
     */
    UIC_SETTING_UP_PWD_USER_NOT_FOUND(100, "该用户不存在或已被删除。"),
    UIC_SETTING_UP_PWD_OLD_IS_ERROR(101, "旧密码输入有误，请重新输入。"),
    UIC_SETTING_UP_PWD_NEW_IS_ILLEGAL(102, "新密码不合法，必需由数字与英文字母，请重新输入。"),
    UIC_SETTING_UP_PWD_TWICE_INCONSISTEND(103, "新密码两次输入不一致，请重新输入。"),
    UIC_SETTING_UP_PWD_OLD_NEW_IS_SAME(104, "新密码与旧密码一致，请重新输入新密码。"),


    UIC_SETTING_iS_NOT_BINDING_USER_NOT_ORDINARY(105, "该用户不是普通会员,请重新输入。"),
    UIC_SETTING_iS_NOT_BINDING_USER_HAS_BINDING(106, "该用户已经绑定,请重新输入。"),
    UIC_SETTING_iS_NOT_BINDING_USER_NOT_USER(107, "没有该用户,请重新输入。"),
    UIC_SETTING_iS_NOT_BINDING_USER_NOT_REPETITION_BINDING(108, "该用户您已绑定,请勿重复绑定,请重新输入。"),
    UIC_SETTING_iS_NOT_BINDING_USER_ORDINARY_NOT_BINDING(109, "您为普通会员,不可添加我的团队,请升级为设计师或企业。"),
    UIC_SETTING_iS_NOT_BINDING_USER_ISNOT_ORDINARY(110, "您不是普通会员,不能接收邀请。"),
    UIC_SETTING_UPDATE_ACCEPTED(111, "该邀请您已接受,请勿重复提交。"),
    UIC_SETTING_UPDATE_OUTMODED(112, "该邀请已过期。"),
    UIC_SETTING_UPDATE_NOT_BELONG_TO_USER(113, "该邀请不属于您。"),
    UIC_SETTING_iS_NOT_BINDING_USER_NOT_POERSONAGE(114, "该用户必须为个人账号,请重新输入。"),
    UIC_SETTING_iS_NOT_RENAME(115, "您没有修改名称的权限"),
    UIC_SETTING_iF_YOU_BIND_IS_UNBIND(116, "请先绑定后,在进行绑定"),
    UIC_SETTING_UNBIND_NO_EQUALS(117, "解绑信息不匹配,解绑失败"),
    UIC_SETTING_EMAIL_ERROR(118, "请输入正确的邮箱地址"),
    UIC_SETTING_MOBILE_ERROR(119, "请输入正确的手机号"),
    UIC_SETTING_NOT_ICOUD(120, "该用户不是云商,请重试"),
    UIC_SETTING_UERR_NAME_LETTER_BEGIN(121, "用户名必须字母开头"),

    UIC_SETTING_NOT_GET_IMAGE(122, "未接收到图片数据，请重试"),

    UIC_SETTING_MOBILE_IS_BIND(123, "手机已绑定！"),

    /**
     * uic_update_identityTag
     */
    UIC_UP_IDENTITYTAG_USER_NOT_FOUND(200, "该用户不存在或已被删除。"),


    UIC_MAIN_SUB_REL_SUB_USER_COUNT_OVER_MAX(300, "子账号数量超过上限。"),

    /**
     * login 2001~3000
     */
    USER_NOT_FOUND(2001, "该账户名不存在。"),
    ERROR_MISS_NICK_NAME(2002, "请填写账户名。"),
    ERROR_MISS_PASSWORD(2003, "请输入密码。"),
    NAME_TOO_LONG(2004, "用户名太长。"),
    ERROR_MISS_USER_ID(2005, "缺少用户ID"),
    ERROR_LOGIN_CHECKCODE(2006, "登录验证码失败。"),
    ERROR_USER_IP_IS_LIMIT(2007, "您的IP被限制登录。"),
    ERROR_NEED_SECURITY_LOGIN(2008, "您开通了登录保护，请进行安全效验。"),
    ERROR_SECURITY_TOKEN(2009, "安全登录失败。"),
    ERROR_LOGIN_OVER_TIME(2010, "登录超时。"),
    ERROR_LOGIN_LINKED_INVALIDATE(2011, "链接已失效"),

    /**
     * 该具体处罚信息由处罚中心提供
     */
    ERROR_NO_PERMISSION(2012, "您没有执行该操作的权限。"),
    ERROR_MALFORM_MOBILE(2013, "您的手机号码格式不正确。"),
    ERROR_MALFORM_NOT_EXISTS(2014, "该手机号码不存在。"),
    ERROR_STAT_USER_DELETE(2015, "此会员已被删除。"),
    ERROR_STAT_USER_FROZEN(2016, "该账户已被冻结，暂时无法登录。"),
    ERROR_STAT_USER_UNKNOWN(2017, "此账户出现异常，请联系客服。"),
    ERROR_USER_PHONE_PROMOTED_TYPE(2018, "请输入用户名或注册邮箱，重新登录。"),
    ERROR_NEED_CHECK_CODE(2019, "为了您的账号安全，请输入验证码。"),
    ERROR_PASSWORD_NOT_MATCH(2020, "您输入的密码和账户名不匹配，请重新输入。"),
    ERROR_USER_NOT_SET_DYNAMIC(2021, "您尚未开通动态密码服务。"),
    ERROR_MOBILE_NOT_MATCH(2022, "您输入的手机号码与会员名不匹配，请检查后重新输入。"),
    ERROR_MOBILE_SEND_LIMIT(2023, "您已经超过了最大允许发送次数。"),

    ERROR_CHECKCODE_TRY_LIMIT(2024, "您的尝试错误次数已经超过了最大允许错误次数。"), ERROR_REQUEST_DYNAMIC_SOON(
            2025, "对不起，您在300秒内只能请求一次发送。"), ERROR_DYNAMIC_PASSWORD_SEND_FAILED(
            2026, "非常抱歉，由于系统异常，动态密码未能发出，请稍后重试或改用其他登录方式。"), INFO_DYNAMIC_PASSWORD_SEND_SUCCESS(
            2027, "动态密码已发出，请注意收取手机短信。如长时间内未收到，请重新获取或改用其他登录方式。"), ERROR_DYNAMIC_PASSWORD_NOT_MATCH(
            2028, "您输入的动态密码错误，请仔细核对并重新输入。"), ERROR_DYNAMIC_PASSWORD_EXPIRED(
            2029, "您输入的动态密码已超时失效（30分钟内使用有效），请获取新的动态密码并输入。"), ERROR_LOGIN_FROZEN_STEAL(
            2030, "你的账户存在安全问题，系统暂时作限制登录处理，建议查杀电脑病毒。我要开通账户"), ERROR_LOGIN_FROZEN_OTHER(
            2031, "非常抱歉！您的账户存在严重违规情况，已作“冻结”账户处理。详细请参见这里"),

    CLIENT_LOGIN_OVER_TIME(2032, "客户端免登录超时。"), CLIENT_MISS_TOKEN(2033,
            "客户端免登录缺少密钥。"), CLIENT_ERROR_TOKEN(2034, "客户端免登录密钥错误。"), ERROR_REGISTER_CHECKCODE_EXPIRED(
            2035, "您输入的手机验证码已超时失效，请重新获取验证码。"), ERROR_REGISTER_NO_CHECKCODE(
            2036, "您尚未获取验证码或验证码已失效，请重新获取验证码。"), ERROR_IS_SUB_USER(2037,
            " 对不起，不支持子帐号登录"), ERROR_SUB_USER_LOGIN_ERROR(2038, "子帐号登录失败。"), ERROR_SUB_USER_NOT_EXIST(
            2039, "您输入的子帐号用户名不存在。"),

    ERROR_SUB_USER_STATUS_INVALID(2040, "您的帐户被冻结，请联系主帐号。"), ERROR_IS_NOT_SUB_USER_OWENER(
            2041, "您的服务不可用，请联系您的主帐号。"),

    ERROR_SUB_USER_LOGIN(2043, "子帐号登录失败。"),

    ERROR_SECOND_PASSWORD_NOT_MATCH(2044,
            "您输入的手机校验密码错误，请查看手机短信，仔细核对您输入的手机校验密码并重新输入。"), ERROR_IS_LAJI_ACCOUNT(
            2045, "垃圾账号"), CLIENT_LOGIN_TOKEN_2(2046, "客户端免登录token重复使用"), ERROR_LONG_LOGIN(
            2047, "长登录失败"), ERROR_DEGRADED_SERVICE(2048, "Login服务不可用，降级服务提示"), ERROR_NO_OPEN_BUSINESS(
            2049, "账号未开通业务"),

    ERROR_STAT_USER_INACTIVE(2050, "您尚未进行注册确认，请检查您注册时使用的信箱，尽快进行注册确认！"),

    ERROR_T_ACCOUNT(2051, "全局的T账号"), ERROR_STUFF_LOGIN_BY_IM(2052, "内部员工账号免登"), ERROR_IS_BEIDAO_ACCOUNT(
            2053, "被盗账号"), ERROR_IS_BEIDAO2_ACCOUNT(2054, "重复被盗账号"),


    ERROR_LOGIN_EXCEPTION(2055, "异常登录,请刷新后重试"),
    ERROR_LOGIN_LOGINCONTEXT_EXCEPTION(2056, "登录信息存储错误"),
    ERROR_LOGIN_LONGLOGIN_NOT_CHANNELID(2057, "异常登录,唯一标示为null"),

    /**
     * service 3001~4000
     */
    ERROR_SERVICE_CANNOT_APPLY_HAS_APPLYED(3000, "已申请"), ERROR_SERVICE_CANNOT_APPLY_NEED_PRE_SERVICE(
            3001, "需订购前置服务"), ERROR_SERVICE_CANNOT_APPLY_HAS_SUBSCRIBED(3002,
            "已订购"), ERROR_SERVICE_CANNOT_APPLY_IS_SUBACCOUNT(3003,
            "子帐号不能申请服务，请使用父帐号服务"), ERROR_SERVICE_CANNOT_APPLY_IS_COMMONACCOUNT(3004,
            "普通用户帐号不能申请此类服务"),


    ERROR_ADJUNCT_NOT_UPDATE_MORE(3005, "附件不支持更新多个"),

    /**
     * model 4001~4500
     */

    WORK_BINDING_INSTER_MODEL_GOODS_NOT_REPEAT_SUBMIT(4001, "请勿重复提交"),
    ERROR_NOT_SELECT_LAST_CATEGORY(4002, "矮油被我抓到了,请选择分类至最后一级"),
    ERROR_SORT_INDEX_EXCEPTION(4003, "模型图片异常,请重试"),
    UIC_MODEL_SELECT_DELETE(4004, "该数据已被删除"),
    UIC_MODEL_SELECT_NOT_FIND(4005, "该数据已逃离地球,请重试"),
    UIC_MODEL_NOT_AUDIT_IS_TRUE(4006, "模型审核已成功,无需取消审核"),
    UIC_MODEL_NOT_AUDIT_IS_FALSE(4007, "模型审核已失败,无需取消审核"),
    UIC_MODEL_AUDITING_PURPOSES(4008, "模型审核中,请取消审核后在提交"),
    UIC_MODEL_DELETE_AUDIT_ERROR(4009, "删除失败请重试"),
    UIC_MODEL_DELETE_IS_SOLE_OUT(40010, "删除失败,请将模型下架后删除"),
    UIC_MODEL_IS_NOT_UPDATE(4011, "您无权修改别人的数据"),

    /**
     * room 4501~5000
     */
    UIC_ROOM_SELECT_DELETE(4501, "该数据已被删除"),
    UIC_ROOM_SELECT_NOT_FIND(4502, "该数据已逃离地球,请重试"),
    UIC_ROOM_NOT_AUDIT_IS_TRUE(4503, "模型审核已成功,无需取消审核"),


    /**
     * 5000~6000 删除错误
     */
    ERROR_DELETE_NOT_USER(5000, "该数据不属于您"), ERROR_DELETE_NOT_DATE(5001,
            "该数据不存在"), ERROR_DELETE_CHILD_HAVE_DATE(5002,
            "该数据下有其他数据,请删除子集后在删除父类"),

    /**
     * 6001~7000 好友
     */
    ERROR_FRIEND_IS_YOU_FRIEND(6001, "该好友已经在你的好友列表中"),
    ERROR_FRIEND_NOT_SAVE_FRIEND(6002, "保存好友时.遇见未知问题,请重试"),
    ERROR_FRIEND_YOU_FRIEND_BLACK(6003, "该好友已将你拉黑"),
    ERROR_GRROUP_IS_YOU_GROUP(6004, "该群组已在您的群组列表中"),
    ERROR_GRROUP_IS_NOT_HARMAST(6005, "您不是群主,无此权限"),
    ERROR_GRROUP_IS_NOT_HARMAST_OR_MANAGE(6006, "您不是群主或管理员,无此权限"),
    ERROR_GRROUP_ADD_MAX_5(6007, "每个用户群组最多添加5个"),
    ERROR_GRROUP_MEMBER_ADD_MAX_100(6007, "每个群组最多添加100个成员"),

    /**
     * 7001-8000,供应商错误
     */
    SUPPLIER_BRAND_SERIES_DELETE_ERROR(7001, "系列下还有商品，请先删除商品"),
    SUPPLIER_BRAND_DELECT_ERROR(7002, "经销商取消授权品牌失败"),
    SUPPLIER_BRAND_UPDATE_ERROR(7003, "更新数据失败"),
    SUPPLIER_BRAND_NOT_SELECT_DEALERID(7004, "查询不到指定经销商id的相关信息"),
    SUPPLIER_BRAND_DELETE_ERROR_IN_GOODS_ABOUT_BRANDID(7005, "品牌id关联的商品数据删除失败"),
    SUPPLIER_CANCEL_GOODS_AUTHORIZE_ERROR(7006, "取消授权商品失败"),
    SUPPLIER_AUTHORIZE_GOODS_ERROR(7007, "授权商品失败"),
    SUPPLIER_BRAND_SERIES_INSERT_ERROR(7008, "系列名已存在"),
    SUPPLIER_BRAND_INSERT_ERROR(7009, "该品牌已入驻"),
    /**
     * 8001-9000,全景360错误
     */
    PANO_CORP_PANO_XML_ERROR(8001, "请检查素材是否已生成全景"),
    PANO_CREATED_XML_ERROR(8002, "系统错误,创建文件时读取文件错误"),
    PANO_UPDATE_XML_ERROR(8003, "系统错误,更新文件时读取文件错误"),
    PANO_NOT_ROAM_ERROR(8004, "该全景不是漫游全景"),
    PANO_ROAM_NOT_PANO_ERROR(8005, "该漫游全景下无单空间全景,请添加单空间全景后保存"),
    PANO_ROAM_NOT_SAVE_SUCCESS_ERROR(8006, "生成全景时出现未知意外,请重新保存"),
    PANO_ROAM_NOT_EXIST_RADARURL_ERROR(8007, "该漫游未上传雷达地图"),
    PANO_BRAND_NOT_FOUND(8008, "该品牌不存在"),
    PANO_USER_NOT_FOUND(8009, "用户名不存在"),
    PANO_USER_NOT_USE(8010, "用户名不可用"),
    PRAISE_FOR_USER_HAVE(8011, "已经点过赞了,不可以再点赞"),
    SHOP_IS_HAVE(8012, "您已预约成功,无需再次预约"),
    STATE_NOT_ARRIVE(8013, "您还没有到达可以开启全景店铺的阶段,请确认"),
    SHOP_BOUND_USER(8014, "店铺已绑定用户"),
    PANO_KRPANO_RUN_ERROR(8015, "切图运行出错,请重试"),
    PANO_DEFAULT_IS_NULL(8016, "默认参数查询失败"),
    PANO_UPLOAD_PIC_ERROR(8016, "未上传图片或文件上传失败"),
    PANO_IS_NOT_ROAM_OR_PLAN(8016, "该全景不是方案或漫游,请检查后重试"),
    PANO_NOT_UPLOAD_MUSIC(8017, "请上传音乐"),
    PANO_NOT_EXIST_DATA(8018, "数据不存在或已被删除"),
    PANO_HOTSPOT_NOT_EXIST(8019, "热点查询失败"),
    PANO_USER_NOT_ACCESS(8020, "用户没有权限"),
    PANO_UPDATE_ID_IS_NULL(8021, "更新id不能为空"),
    PANO_HOTSPOT_RESOURCE_ADD_ERROR(8022, "该类资源已存在，请先删除再添加"),
    PANO_GROUP_NOT_BY_PANO_ID(8023, "参数错误,有一个或多个分组不属于该全景"),
    PANO_GROUP_INSERT_ERROR(8024, "分组插入失败"),
    PANO_NOT_UPLOAD_THUMB(8025, "未上传图片或文件上传失败"),
    PANO_GROUP_NOT_SELECT(8026, "分组已删除或不存在,请重试"),
    PANO_GROUP_IS_NOT_THIS_PANO(8027, "该分组不属于当前的全景"),
    PANO_GROUPREL_SAVE_IS_NOT_THIS_GROUPID(8028, "分组数据保存失败,参数异常"),
    SHOP_ADDRESS_ERROR(8029, "店铺地址不能为空哦 亲"),
    PANO_COMMENT_NOT_EXIST(8030, "评论不存在或已删除"),
    PANO_COMMENT_NOT_ACCESS(8031, "操作评论无权限"),
    PANO_COMMENT_IS_NULL(8032, "评论内容不能为空"),
    AUTHOR_NOT_IS_NULL(8033, "业务员不能为空"),
    PANO_IS_BIND(8034, "此全景已绑定"),
    PANO_IS_NOT_EXIST(8035, "无此全景"),
    PANO_IS_NOT_BIND(8036, "此全景未绑定"),
    AUTHOR_IS_ERROR(8037, "业务员手机或名字错误"),
    PANO_ROAM_IS_NOT_ACCESS(8038, "店铺id无效"),
    TAG_IS_APPEAL(8037, "该标签正在申诉中,无需再次申诉"),
    /**
     * 9001-10000,个人中心错误
     */
    AFFLATUS_MAX_SIZE_ERROR(9001, "您的灵感集数量已达上限"),

    /**
     * 10001-11000,云商错误
     */
    APP_PLAN_IS_THERE(10001, "改数字精装已保存,请勿重复提交"),
    /**
     * 户型
     */
    UNIT_BUILDING_NULL(11001, "楼盘不存在或已删除,请重新绑定楼盘或联系管理员"),
    /**
     * 12001-13000 关注错误
     */
    ATTENTIONS_IS_SELF(12001, "自己关注自己?!你这是在逗我..."),
    /**
     * 13001-14000
     */
    DESIGNSPROJECT_IS_DELETE(13001, "该项目已被删除"),
    NOT_HAVE_ADMIN(13002, "你没有该权限"),
    NOT_PICTURE(13003, "不是图片类型的素材,不能存为封面图片"),
    USER_PROJECT_IS_REL(13004, "业主账号已关联该项目"),
    UNIT_IS_DELETE(13005, "该单元已被删除,请勿重复删除"),
    NOT_HAVE_PCITURE(13006, "请至少上传一张图片类型的素材资源"),
    IS_MY_RESOURCE(13007, "主案设计师不需要采集自己的素材哦"),
    NOT_DELETE_LAST(13008, "阶段话题必须留有一条数据"),
    MEMBER_IS_FULL(13009, "阶段负责人达到上限"),
    BOX_NAME_NOT_NULL(13010, "文件夹名称不能为null"),
    STAGE_TYPE_IS_FULL(13011, "阶段分类达到上限"),


    IS_YUN_DESIGNER(13012, "您已经是云设计师"),
    IS_YUN_ORGANIZATION(13013, "您已经是云设计机构"),
    STAGEID_IS_ZERO(13014, "所选阶段还未开始"),
    ADD_IS_AGAIN(13015, "素材已被收藏到指定文件夹内,请选择其他文件夹"),
    BOX_IS_NULL(13016, "所选文件夹不存在"),
    BOX_NAME_IS_EXIST(13017, "文件夹名称已存在,请重新操作"),
    TYPE_NAME_IS_EXIST(13018, "话题分类已存在,请重新操作"),
    DESIGNSPROJECT_IS_NOT_YOU(13019, "该项目不属于您"),
    COMMENT_NOT_HAVE(13020, "评论不存在或已被删除,请刷新后重试"),

    ERROR_IS_READED(14001, "该消息已读"),
    ERROR_IS_UNREADED(14002, "该消息未读"),

    PIC_NOT_NULL(15001, "至少上传一张图片"),

    ERROR_PUSH_DEVICE(15002, "未找到推送设备"),

    ERROR_SELF_PRIVATE_MESSAGE(15003, "请不要给自己发私信"),
    OAUTH_NOT_SETTING(400, "未设置该类");

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    @Override
    public String toString() {
        return code + ":" + msg;
    }

    private OAuthResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
